package cn.com.nes.site.service.workOrder.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@EqualsAndHashCode
public class UserXzqhCompanyDto {
    /**
     * 行政区划代码
     */
    private String xzqhdm;

    /**
     * 行政区划名称
     */
    private String xzqhmc;

    /**
     * 设备厂家ids
     */
    private List<String> equipmentCompanyIds;

    /**
     * 设备厂家名称
     */
    private List<String> equipmentCompanyNames;

    public UserXzqhCompanyDto(PermissionDto dto) {
        this.xzqhdm = dto.getXzqhdm();
        this.xzqhmc = dto.getXzqhmc();
        this.equipmentCompanyIds = dto.getEquipmentCompanyIds();
        this.equipmentCompanyNames = dto.getEquipmentCompanyNames();
    }
}
